<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="/include/head.jsp" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>注册</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="${SYSTEM_ROOT }/user/register.action" onsubmit="return fnf();">
  <table width="307" border="0">
    <caption>
      注册
    </caption>
    <tr>
      <td width="103"><strong>Email</strong>：</td>
      <td width="194"><label>
        <input type="text" name="email" id="eamil" />
      </label></td>
    </tr>
    <tr>
      <td>用户名：</td>
      <td><label>
        <input type="text" name="username" id="username" />
      </label></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>设置密码：</td>
      <td>
        <label for="psd"></label>
        <input type="password" name="password" id="password"  />
      </td>
    </tr>
    <tr>
      <td>确认密码：</td>
      <td><input type="password" name="password2" id="password2" onblur="fn()"/></td>
    </tr>
    <tr>
      <td><label>
        <input type="submit" name="submit" id="submit" value="提交" />
      </label></td>
      <td> 已有****账户，请<a href="/login/">登录</a></td>
    </tr>
  </table>
</form>
<script type="text/javascript">
  
  
     function fnf(){
      //alert(122);
      //var email=Document.getElementById("E-mail");
      var username=Document.getElementById("username");
	 //  var pw=document.getElementById("psd");
     //  var pwr=document.getElementById("psd2");
	   //if(pw.value!=pwr.value){
		 //  alert("两次密码输入错误....");
		   //return false;
	   //}
	  
	  // if(email.value && username.value ){
	  // return true;
	   
	  // }
	   return true;
	   
	 }
</script>
</body>
</html>
